<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // 有异常不捕获，就会导致后续代码中止掉
        // 对于有可能会导致异常的代码作try...catch 
        var str = '{name:"zs"}'
        try{
            console.log(JSON.parse(str))
        }catch(err){
            console.log(err)
        }
        console.log(123)
    </script>
</body>
</html>